# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=mbrola
pkgver=3.3
pkgrel=0
pkgdesc="Speech synthesizer based on the concatenation of diphones"
url="https://github.com/numediart/MBROLA"
arch="all !s390x" # assumes little endian
license="AGPL-3.0-or-later"
source="https://github.com/numediart/MBROLA/archive/refs/tags/$pkgver/mbrola-$pkgver.tar.gz
	terrible-makefile.patch
	"
builddir="$srcdir/MBROLA-$pkgver"
options="!check" # tests need some external script to run

build() {
	make
}

package() {
	install -Dm755 Bin/mbrola -t "$pkgdir"/usr/bin
}

sha512sums="
4c15481d2afc7f459c511d2f2791ae1f0f89893ea86fcde113c73f9b5509b893bc7beac8ec5fa76ca0f4e0aca35982ff1db15e8611514d91991608aee004c3f2  mbrola-3.3.tar.gz
73390819c34612a9438b6fc197c0b01934401c0d2fd2bd8f3514a1f61422d4dbac79fe0c5f82c963e29531b615fe676eeda981cad6089fa4224baf7dbf67d219  terrible-makefile.patch
"
